package com.example.bzh.gamecat.ui.live.hot;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.example.bzh.gamecat.R;
import com.example.bzh.gamecat.base.BaseActivity;

import butterknife.BindView;

public class DetailActivity extends BaseActivity {

    @BindView(R.id.wv_detail)
    WebView wvDetail;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_detail;
    }

    @Override
    public void initView() {
        super.initView();
        Intent intent = getIntent();
        String url = intent.getStringExtra("action");
        WebSettings settings = wvDetail.getSettings();
        settings.setJavaScriptEnabled(true);
        wvDetail.loadUrl(url);
    }
}
